package com.os;

/**
 * @Author Matt
 * @Date 2022-09-02
 * @Desc:
 * @Version V1.0
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("多线程启动了");
    }

    public static void main(String[] args) {
        /*MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        thread.start();*/

        /*new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("多线程启动了~");
            }
        }).start();*/

        new Thread(() -> {
            System.out.println("多线程启动了~~");
        }).start();
    }
}
